import Vue from 'vue'
import request from '$exp/utils/request'

export function getFormById(id) {
  return request({
    url: `${Vue.prototype.$requestConfig.baseUrl}/form/form/v1/previewDesignVue?formId=${id}`,
  }).then((resp) => {
    return {
      html: resp.bpmForm.formHtml,
      data: resp.data,
      permission: resp.permission,
    }
  })
}
